const { defineConfig } = require('@vue/cli-service')
const path = require('path')
module.exports = defineConfig({
  transpileDependencies: true,

  // 格式错误不会造成编译错误
  lintOnSave: true,

  pluginOptions: {
    'style-resources-loader': {
      preProcessor: 'less',
      // 注入指定less文件
      patterns: [path.join(__dirname, '/src/styles/var.less')]
    }
  }
})
